package com.ruoyi.exam_order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam_order.mapper.TbExamOrderMapper;
import com.ruoyi.exam_order.domain.TbExamOrder;
import com.ruoyi.exam_order.service.ITbExamOrderService;

/**
 * 考试报名订单信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbExamOrderServiceImpl implements ITbExamOrderService 
{
    @Autowired
    private TbExamOrderMapper tbExamOrderMapper;

    /**
     * 查询考试报名订单信息
     * 
     * @param id 考试报名订单信息主键
     * @return 考试报名订单信息
     */
    @Override
    public TbExamOrder selectTbExamOrderById(Long id)
    {
        return tbExamOrderMapper.selectTbExamOrderById(id);
    }

    /**
     * 查询考试报名订单信息列表
     * 
     * @param tbExamOrder 考试报名订单信息
     * @return 考试报名订单信息
     */
    @Override
    public List<TbExamOrder> selectTbExamOrderList(TbExamOrder tbExamOrder)
    {
        return tbExamOrderMapper.selectTbExamOrderList(tbExamOrder);
    }

    /**
     * 新增考试报名订单信息
     * 
     * @param tbExamOrder 考试报名订单信息
     * @return 结果
     */
    @Override
    public int insertTbExamOrder(TbExamOrder tbExamOrder)
    {
        return tbExamOrderMapper.insertTbExamOrder(tbExamOrder);
    }

    /**
     * 修改考试报名订单信息
     * 
     * @param tbExamOrder 考试报名订单信息
     * @return 结果
     */
    @Override
    public int updateTbExamOrder(TbExamOrder tbExamOrder)
    {
        return tbExamOrderMapper.updateTbExamOrder(tbExamOrder);
    }

    /**
     * 批量删除考试报名订单信息
     * 
     * @param ids 需要删除的考试报名订单信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamOrderByIds(Long[] ids)
    {
        return tbExamOrderMapper.deleteTbExamOrderByIds(ids);
    }

    /**
     * 删除考试报名订单信息信息
     * 
     * @param id 考试报名订单信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamOrderById(Long id)
    {
        return tbExamOrderMapper.deleteTbExamOrderById(id);
    }
}
